package com.rfid.acs;


import com.rfid.acs.net.tcp.FiledId;

import java.text.SimpleDateFormat;
import java.util.Date;

class RestoreBookRequestBean extends AcsRequestBean {

    @Override
    public String requestCommand() {
        return "09N";
    }

    @FiledId(name = "AO")
    private String devicesName;

    @FiledId(name = "AB")
    private String bookNo;

    @FiledId(name = "AP")
    private String curLocation;

    @FiledId(name = "UI")
    private String uid;

    @FiledId(name = "AC")
    private String ac;

    @FiledId(name = "BI")
    private String bi = "N";

    @FiledId(name = "MC")
    private String macAddress;

    @FiledId(name = "CI")
    private String devicesNo;

    @Override
    public String dateAfter() {

        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd    HHmmss");
        String dateStr = sdf.format(new Date());

        return dateStr;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getDevicesName() {
        return devicesName;
    }

    public void setDevicesName(String devicesName) {
        this.devicesName = devicesName;
    }

    public String getBookNo() {
        return bookNo;
    }

    public void setBookNo(String bookNo) {
        this.bookNo = bookNo;
    }

    public String getCurLocation() {
        return curLocation;
    }

    public void setCurLocation(String curLocation) {
        this.curLocation = curLocation;
    }

    public String getAc() {
        return ac;
    }

    public void setAc(String ac) {
        this.ac = ac;
    }

    public String getBi() {
        return bi;
    }

    public void setBi(String bi) {
        this.bi = bi;
    }

    public String getMacAddress() {
        return macAddress;
    }

    public void setMacAddress(String macAddress) {
        this.macAddress = macAddress;
    }

    public String getDevicesNo() {
        return devicesNo;
    }

    public void setDevicesNo(String devicesNo) {
        this.devicesNo = devicesNo;
    }
}
